Import ('env')

name = 'unplugged'
inc = env.Dir('.')
ext_inc = env.Dir('unplugged')
src = env.Glob('src/*.cpp')
deps = ['mili', 'dl']

env.CreateSharedLibrary(name, inc, ext_inc, src, deps)

CXXFLAGS = [f for f in env['CXXFLAGS'] if f not in ['-ansi', '-pedantic']]
CXXFLAGS.append('-Wno-sign-compare') 
env.Replace(CXXFLAGS=CXXFLAGS, CFLAGS=CXXFLAGS)

src = env.Glob('src/test/*.cpp')
env.CreateSharedLibrary(name + '-for-test', inc, ext_inc, src, deps + ['gmock', 'gtest', 'gtest_main'])

